export default {
  data() {
    return { currentTime: '' };
  },
  props: {
    title: { type: String }
  },
  mounted() {
    let incrementNumber = () => {
      setTimeout(incrementNumber, 500);
      this.currentTime = dayjs().format('YYYY年MM月DD日  HH:mm:ss');
    }
    setTimeout(incrementNumber, 500);
  },
  template: `
  <el-row class="header">
    <el-col :span="6"><img src="../images/aeec_logo.png" height="60" alt="黎阳LOGO" /></el-col>
    <el-col :span="12" class="header-title">{{title}}</el-col>
    <el-col :span="6" class="currentTime">{{currentTime}}</el-col>
  </el-row>
  `
}